#ifndef _UNIT_H
#define _UNIT_H

class DLL_EXPORT Unit : public Object
{
	friend class Player;
	friend class Creature;
	explicit Unit();
public:
	bool IsPlayer() { return m_typeid == TYPEID_PLAYER; }
	bool IsCreature() { return m_typeid == TYPEID_UNIT; }
	void EventDismount() { SetUI32Value(UNIT_FIELD_MOUNTDISPLAYID, 0); }
	void SetSpeed(ui32 type, float value);
};

#endif /* _UNIT_H */